import Vue from 'vue'
import Router from 'vue-router'

// import index from '@/pages/index'
// import home from '@/pages/home'
const index=()=>import('@/pages/index')
const home=()=>import('@/pages/home')
//登陆
// import login from '@/pages/login'
const login=()=>import('@/pages/login')
//修改管理员信息
// import modifyInfo from '@/pages/modifyInfo'
const modifyInfo=()=>import('@/pages/modifyInfo')
// 用户管理
// import userList from '@/pages/userManagement/userList'
// import blacklist from '@/pages/userManagement/blacklist'
// import feedbackManagement from '@/pages/userManagement/feedbackManagement'
// import accountGetBack from '@/pages/userManagement/accountGetBack'
// import inviteList from '@/pages/userManagement/inviteList'
const userList=()=>import('@/pages/userManagement/userList')
const blacklist=()=>import('@/pages/userManagement/blacklist')
const feedbackManagement=()=>import('@/pages/userManagement/feedbackManagement')
const accountGetBack=()=>import('@/pages/userManagement/accountGetBack')
const inviteList=()=>import('@/pages/userManagement/inviteList')
//订单管理
// import orderManagement from '@/pages/orderManagement/orderManagement'
// import billsFlow from '@/pages/orderManagement/billsFlow'
// import balanceManagement from '@/pages/orderManagement/balanceManagement'
// import userWithdraw from '@/pages/orderManagement/userWithdraw'
// import dailyRecharge from '@/pages/orderManagement/dailyRecharge'
// import userCheckList from '@/pages/orderManagement/userCheckList'
// import dailyUserSuccessRate from '@/pages/orderManagement/dailyUserSuccessRate'
// import diamondDetails from '@/pages/orderManagement/diamondDetails'
const orderManagement=()=>import('@/pages/orderManagement/orderManagement')
const billsFlow=()=>import('@/pages/orderManagement/billsFlow')
const balanceManagement=()=>import('@/pages/orderManagement/balanceManagement')
const userWithdraw=()=>import('@/pages/orderManagement/userWithdraw')
const dailyRecharge=()=>import('@/pages/orderManagement/dailyRecharge')
const userCheckList=()=>import('@/pages/orderManagement/userCheckList')
const dailyUserSuccessRate=()=>import('@/pages/orderManagement/dailyUserSuccessRate')
const diamondDetails=()=>import('@/pages/orderManagement/diamondDetails')
//数据统计
// import rechargeStatistics from '@/pages/dataStatistics/rechargeStatistics'
// import registeredActive from '@/pages/dataStatistics/registeredActive'
// import dailyChannelStatistics from '@/pages/dataStatistics/dailyChannelStatistics'
const rechargeStatistics=()=>import('@/pages/dataStatistics/rechargeStatistics')
const registeredActive=()=>import('@/pages/dataStatistics/registeredActive')
const dailyChannelStatistics=()=>import('@/pages/dataStatistics/dailyChannelStatistics')
//内容管理
// import userVideoUploadManagement from '@/pages/contentManagement/userVideoUploadManagement'
// import backstageVideoUploadManagement from '@/pages/contentManagement/backstageVideoUploadManagement'
// import communityNewsManagement from '@/pages/contentManagement/communityNewsManagement'
// import topicCircle from '@/pages/contentManagement/topicCircle'
// import findSearch from '@/pages/contentManagement/findSearch'
// import videoClassManagement from '@/pages/contentManagement/videoClassManagement'
// import videoKeyWord from '@/pages/contentManagement/videoKeyWord'
// import recycleBin from '@/pages/contentManagement/recycleBin'
// import labelManagement from '@/pages/contentManagement/labelManagement'
// import indexVideoManagement from '@/pages/contentManagement/indexVideoManagement'
// import indexFreeVideoManagement from '@/pages/contentManagement/indexFreeVideoManagement'
// import recommendModuleManagement from '@/pages/contentManagement/recommendModuleManagement'
// import moduleVideoManagement from '@/pages/contentManagement/moduleVideoManagement'
// import privatePhotosManagement from '@/pages/contentManagement/privatePhotosManagement'
// import loufengInfoManagement from '@/pages/contentManagement/loufengInfoManagement'
// import privatePhotoClassManagement from '@/pages/contentManagement/privatePhotoClassManagement' // 私照分类管理
// import loufengAreaManagement from '@/pages/contentManagement/loufengAreaManagement' // 楼凤地区管理
const userVideoUploadManagement=()=>import('@/pages/contentManagement/userVideoUploadManagement')
const backstageVideoUploadManagement=()=>import('@/pages/contentManagement/backstageVideoUploadManagement')
const communityNewsManagement=()=>import('@/pages/contentManagement/communityNewsManagement')
const topicCircle=()=>import('@/pages/contentManagement/topicCircle')
const findSearch=()=>import('@/pages/contentManagement/findSearch')
const videoClassManagement=()=>import('@/pages/contentManagement/videoClassManagement')
const videoKeyWord=()=>import('@/pages/contentManagement/videoKeyWord')
const recycleBin=()=>import('@/pages/contentManagement/recycleBin')
const labelManagement=()=>import('@/pages/contentManagement/labelManagement')
const indexVideoManagement=()=>import('@/pages/contentManagement/indexVideoManagement')
const indexFreeVideoManagement=()=>import('@/pages/contentManagement/indexFreeVideoManagement')
const recommendModuleManagement=()=>import('@/pages/contentManagement/recommendModuleManagement')
const moduleVideoManagement=()=>import('@/pages/contentManagement/moduleVideoManagement')
const privatePhotosManagement=()=>import('@/pages/contentManagement/privatePhotosManagement')
const loufengInfoManagement=()=>import('@/pages/contentManagement/loufengInfoManagement')
const privatePhotoClassManagement=()=>import('@/pages/contentManagement/privatePhotoClassManagement')
const loufengAreaManagement=()=>import('@/pages/contentManagement/loufengAreaManagement')
//运营管理
// import bootAnimationManagement from '@/pages/operationManagement/bootAnimationManagement'
// import imageAdManagement from '@/pages/operationManagement/imageAdManagement'
// import adManagement from '@/pages/operationManagement/adManagement'
// import membershipCardManagement from '@/pages/operationManagement/membershipCardManagement'
// import diamondPackageManagement from '@/pages/operationManagement/diamondPackageManagement'
// import payChannelsManagement from '@/pages/operationManagement/payChannelsManagement'
// import redemptionCodeList from '@/pages/operationManagement/redemptionCodeList'
// import channelsManagement from '@/pages/operationManagement/channelsManagement'
// import invitationRulesManagement from '@/pages/operationManagement/invitationRulesManagement'
// import invitationGroupManagement from '@/pages/operationManagement/invitationGroupManagement'
// import systemNoticeManagement from '@/pages/operationManagement/systemNoticeManagement'
// import redemptionRecord from '@/pages/operationManagement/redemptionRecord'
// import shareImgManagement from '@/pages/operationManagement/shareImgManagement'
// import dailyCheckInManagement from '@/pages/operationManagement/dailyCheckInManagement'
// import communicateCenterManagement from '@/pages/operationManagement/communicateCenterManagement'
const bootAnimationManagement=()=>import('@/pages/operationManagement/bootAnimationManagement')
const imageAdManagement=()=>import('@/pages/operationManagement/imageAdManagement')
const adManagement=()=>import('@/pages/operationManagement/adManagement')
const membershipCardManagement=()=>import('@/pages/operationManagement/membershipCardManagement')
const diamondPackageManagement=()=>import('@/pages/operationManagement/diamondPackageManagement')
const payChannelsManagement=()=>import('@/pages/operationManagement/payChannelsManagement')
const redemptionCodeList=()=>import('@/pages/operationManagement/redemptionCodeList')
const channelsManagement=()=>import('@/pages/operationManagement/channelsManagement')
const invitationRulesManagement=()=>import('@/pages/operationManagement/invitationRulesManagement')
const invitationGroupManagement=()=>import('@/pages/operationManagement/invitationGroupManagement')
const systemNoticeManagement=()=>import('@/pages/operationManagement/systemNoticeManagement')
const redemptionRecord=()=>import('@/pages/operationManagement/redemptionRecord')
const shareImgManagement=()=>import('@/pages/operationManagement/shareImgManagement')
const dailyCheckInManagement=()=>import('@/pages/operationManagement/dailyCheckInManagement')
const communicateCenterManagement=()=>import('@/pages/operationManagement/communicateCenterManagement')
//系统管理
// import systemConfig from '@/pages/systemManagement/systemConfig'
// import versionUpgradManagement from '@/pages/systemManagement/versionUpgradManagement'
// import rolesManagement from '@/pages/systemManagement/rolesManagement'
// import administratorManagement from '@/pages/systemManagement/administratorManagement'
// import domainNameManagement from '@/pages/systemManagement/domainNameManagement'
// import permissionResourceManagement from '@/pages/systemManagement/permissionResourceManagement'
const systemConfig=()=>import('@/pages/systemManagement/systemConfig')
const versionUpgradManagement=()=>import('@/pages/systemManagement/versionUpgradManagement')
const rolesManagement=()=>import('@/pages/systemManagement/rolesManagement')
const administratorManagement=()=>import('@/pages/systemManagement/administratorManagement')
const domainNameManagement=()=>import('@/pages/systemManagement/domainNameManagement')
const permissionResourceManagement=()=>import('@/pages/systemManagement/permissionResourceManagement')
//系统监控
// import errorLog from '@/pages/systemMonitor/errorLog'
// import userBehaviorAnalysis from '@/pages/systemMonitor/userBehaviorAnalysis'
// import operationLog from '@/pages/systemMonitor/operationLog'
const errorLog=()=>import('@/pages/systemMonitor/errorLog')
const userBehaviorAnalysis=()=>import('@/pages/systemMonitor/userBehaviorAnalysis')
const operationLog=()=>import('@/pages/systemMonitor/operationLog')

Vue.use(Router)
export default new Router({
  mode: 'history',
  // base: '/wuwushop/',
  // mode: 'hash',
  routes: [
    //登陆
    {
      path: '/',
      name: 'login',
      component: login,
    },
    //修改管理员信息
    {
      path: '/modifyInfo',
      name: 'modifyInfo',
      component: modifyInfo,
    },
    //首页
    {
      path: '/index',
      component: index,
      children: [{
          path: '/',
          name: 'home',
          component: home,
          meta: {
            title: "首页"
          }
        },
        // 用户管理
        //第一个用来把路由和elementui的menu顺序关联
        {
          path: '/1-1',
          redirect: '/userList',
          meta: {
            title: "用户列表"
          }
        },
        {
          path: '/userList',
          name: 'userList',
          component: userList,
          meta: {
            title: "用户列表"
          }
        },
        {
          path: '/1-2',
          redirect: '/blacklist',
          meta: {
            title: "黑名单列表"
          }
        },
        {
          path: '/blacklist',
          name: 'blacklist',
          component: blacklist,
          meta: {
            title: "黑名单列表"
          }
        },
        {
          path: '/1-3',
          redirect: '/feedbackManagement',
          meta: {
            title: "反馈管理"
          }
        },
        {
          path: '/feedbackManagement',
          name: 'feedbackManagement',
          component: feedbackManagement,
          meta: {
            title: "反馈管理"
          }
        },
        {
          path: '/1-4',
          redirect: '/accountGetBack',
          meta: {
            title: "账号找回"
          }
        },
        {
          path: '/accountGetBack',
          name: 'accountGetBack',
          component: accountGetBack,
          meta: {
            title: "账号找回"
          }
        },
        {
          path: '/1-5',
          redirect: '/inviteList',
          meta: {
            title: "邀请列表"
          }
        },
        {
          path: '/inviteList',
          name: 'inviteList',
          component: inviteList,
          meta: {
            title: "邀请列表"
          }
        },
        {
          path: '/2-1',
          redirect: '/orderManagement',
          meta: {
            title: "订单管理"
          }
        },
        {
          path: '/orderManagement',
          name: 'orderManagement',
          component: orderManagement,
          meta: {
            title: "订单管理"
          }
        },
        {
          path: '/2-2',
          redirect: '/billsFlow',
          meta: {
            title: "账单流水"
          }
        },
        {
          path: '/billsFlow',
          name: 'billsFlow',
          component: billsFlow,
          meta: {
            title: "账单流水"
          }
        },
        {
          path: '/2-3',
          redirect: '/diamondDetails',
          meta: {
            title: "钻石明细"
          }
        },
        {
          path: '/diamondDetails',
          name: 'diamondDetails',
          component: diamondDetails,
          meta: {
            title: "钻石明细"
          }
        },
        {
          path: '/2-4',
          redirect: '/balanceManagement',
          meta: {
            title: "余额管理"
          }
        },
        {
          path: '/balanceManagement',
          name: 'balanceManagement',
          component: balanceManagement,
          meta: {
            title: "余额管理"
          }
        },
        {
          path: '/2-5',
          redirect: '/userWithdraw',
          meta: {
            title: "用户提现"
          }
        },
        {
          path: '/userWithdraw',
          name: 'userWithdraw',
          component: userWithdraw,
          meta: {
            title: "用户提现"
          }
        },
        {
          path: '/2-6',
          redirect: '/dailyRecharge',
          meta: {
            title: "每日充值"
          }
        },
        {
          path: '/dailyRecharge',
          name: 'dailyRecharge',
          component: dailyRecharge,
          meta: {
            title: "每日充值"
          }
        },
        {
          path: '/2-7',
          redirect: '/userCheckList',
          meta: {
            title: "用户查单"
          }
        },
        {
          path: '/userCheckList',
          name: 'userCheckList',
          component: userCheckList,
          meta: {
            title: "用户查单"
          }
        },
        {
          path: '/2-8',
          redirect: '/dailyUserSuccessRate',
          meta: {
            title: "每日用户成功率"
          }
        },
        {
          path: '/dailyUserSuccessRate',
          name: 'dailyUserSuccessRate',
          component: dailyUserSuccessRate,
          meta: {
            title: "每日用户成功率"
          }
        },
        {
          path: '/3-1',
          redirect: '/rechargeStatistics',
          meta: {
            title: "充值统计"
          }
        },
        {
          path: '/rechargeStatistics',
          name: 'rechargeStatistics',
          component: rechargeStatistics,
          meta: {
            title: "充值统计"
          }
        },
        {
          path: '/3-2',
          redirect: '/registeredActive',
          meta: {
            title: "注册/活跃"
          }
        },
        {
          path: '/registeredActive',
          name: 'registeredActive',
          component: registeredActive,
          meta: {
            title: "注册/活跃"
          }
        },
        {
          path: '/3-3',
          redirect: '/dailyChannelStatistics',
          meta: {
            title: "每日渠道统计"
          }
        },
        {
          path: '/dailyChannelStatistics',
          name: 'dailyChannelStatistics',
          component: dailyChannelStatistics,
          meta: {
            title: "每日渠道统计"
          }
        },
        {
          path: '/4-1',
          redirect: '/userVideoUploadManagement',
          meta: {
            title: "用户视频上传管理"
          }
        },
        {
          path: '/userVideoUploadManagement',
          name: 'userVideoUploadManagement',
          component: userVideoUploadManagement,
          meta: {
            title: "用户视频上传管理"
          }
        },
        {
          path: '/4-2',
          redirect: '/backstageVideoUploadManagement',
          meta: {
            title: "后台视频上传管理"
          }
        },
        {
          path: '/backstageVideoUploadManagement',
          name: 'backstageVideoUploadManagement',
          component: backstageVideoUploadManagement,
          meta: {
            title: "后台视频上传管理"
          }
        },
        {
          path: '/4-3',
          redirect: '/communityNewsManagement',
          meta: {
            title: "社区动态管理"
          }
        },
        {
          path: '/communityNewsManagement',
          name: 'communityNewsManagement',
          component: communityNewsManagement,
          meta: {
            title: "社区动态管理"
          }
        },
        {
          path: '/4-4',
          redirect: '/topicCircle',
          meta: {
            title: "话题圈"
          }
        },
        {
          path: '/topicCircle',
          name: 'topicCircle',
          component: topicCircle,
          meta: {
            title: "话题圈"
          }
        },
        {
          path: '/4-5',
          redirect: '/findSearch',
          meta: {
            title: "发现及搜索"
          }
        },
        {
          path: '/findSearch',
          name: 'findSearch',
          component: findSearch,
          meta: {
            title: "发现及搜索"
          }
        },
        {
          path: '/4-6',
          redirect: '/videoClassManagement',
          meta: {
            title: "视频上传分类管理"
          }
        },
        {
          path: '/videoClassManagement',
          name: 'videoClassManagement',
          component: videoClassManagement,
          meta: {
            title: "视频上传分类管理"
          }
        },
        {
          path: '/4-7',
          redirect: '/videoKeyWord',
          meta: {
            title: "视频关键词"
          }
        },
        {
          path: '/videoKeyWord',
          name: 'videoKeyWord',
          component: videoKeyWord,
          meta: {
            title: "视频关键词"
          }
        },
        {
          path: '/4-8',
          redirect: '/recycleBin',
          meta: {
            title: "回收站"
          }
        },
        {
          path: '/recycleBin',
          name: 'recycleBin',
          component: recycleBin,
          meta: {
            title: "回收站"
          }
        },
        {
          path: '/4-9',
          redirect: '/labelManagement',
          meta: {
            title: "标签管理"
          }
        },
        {
          path: '/labelManagement',
          name: 'labelManagement',
          component: labelManagement,
          meta: {
            title: "标签管理"
          }
        },
        {
          path: '/4-10',
          redirect: '/indexVideoManagement',
          meta: {
            title: "首页视频管理"
          }
        },
        {
          path: '/indexVideoManagement',
          name: 'indexVideoManagement',
          component: indexVideoManagement,
          meta: {
            title: "首页视频管理"
          }
        },
        {
          path: '/4-11',
          redirect: '/indexFreeVideoManagement',
          meta: {
            title: "首页免费视频管理"
          }
        },
        {
          path: '/indexFreeVideoManagement',
          name: 'indexFreeVideoManagement',
          component: indexFreeVideoManagement,
          meta: {
            title: "首页免费视频管理"
          }
        },
        {
          path: '/4-12',
          redirect: '/recommendModuleManagement',
          meta: {
            title: "推荐模块管理"
          }
        },
        {
          path: '/recommendModuleManagement',
          name: 'recommendModuleManagement',
          component: recommendModuleManagement,
          meta: {
            title: "推荐模块管理"
          }
        },
        {
          path: '/4-14',
          redirect: '/privatePhotoClassManagement',
          meta: {
            title: "私照分类管理"
          }
        },
        {
          path: '/privatePhotoClassManagement',
          name: 'privatePhotoClassManagement',
          component: privatePhotoClassManagement,
          meta: {
            title: "私照分类管理"
          }
        },
        {
          path: '/4-16',
          redirect: '/loufengAreaManagement',
          meta: {
            title: "楼凤地区管理"
          }
        },
        {
          path: '/loufengAreaManagement',
          name: 'loufengAreaManagement',
          component: loufengAreaManagement,
          meta: {
            title: "楼凤地区管理"
          }
        },
        {
          path: '/moduleVideoManagement',
          name: 'moduleVideoManagement',
          component: moduleVideoManagement,
          meta: {
            title: "模块视频管理"
          }
        },
        {
          path: '/4-13',
          redirect: '/privatePhotosManagement',
          meta: {
            title: "私照管理"
          }
        },
        {
          path: '/privatePhotosManagement',
          name: 'privatePhotosManagement',
          component: privatePhotosManagement,
          meta: {
            title: "私照管理"
          }
        },
        {
          path: '/4-15',
          redirect: '/loufengInfoManagement',
          meta: {
            title: "楼凤信息管理"
          }
        },
        {
          path: '/loufengInfoManagement',
          name: 'loufengInfoManagement',
          component: loufengInfoManagement,
          meta: {
            title: "楼凤信息管理"
          }
        },
        {
          path: '/5-1',
          redirect: '/bootAnimationManagement',
          meta: {
            title: "开机动画管理"
          }
        },
        {
          path: '/bootAnimationManagement',
          name: 'bootAnimationManagement',
          component: bootAnimationManagement,
          meta: {
            title: "开机动画管理"
          }
        },
        {
          path: '/5-2',
          redirect: '/imageAdManagement',
          meta: {
            title: "图片广告管理"
          }
        },
        {
          path: '/imageAdManagement',
          name: 'imageAdManagement',
          component: imageAdManagement,
          meta: {
            title: "图片广告管理"
          }
        },
        {
          path: '/5-3',
          redirect: '/adManagement',
          meta: {
            title: "广告管理"
          }
        },
        {
          path: '/adManagement',
          name: 'adManagement',
          component: adManagement,
          meta: {
            title: "广告管理"
          }
        },
        {
          path: '/5-4',
          redirect: '/membershipCardManagement',
          meta: {
            title: "会员卡管理"
          }
        },
        {
          path: '/membershipCardManagement',
          name: 'membershipCardManagement',
          component: membershipCardManagement,
          meta: {
            title: "会员卡管理"
          }
        },
        {
          path: '/5-5',
          redirect: '/shareImgManagement',
          meta: {
            title: "分享图片管理"
          }
        },
        {
          path: '/shareImgManagement',
          name: 'shareImgManagement',
          component: shareImgManagement,
          meta: {
            title: "分享图片管理"
          }
        },
       
        {
          path: '/5-6',
          redirect: '/redemptionCodeList',
          meta: {
            title: "兑换码列表"
          }
        },
        {
          path: '/redemptionCodeList',
          name: 'redemptionCodeList',
          component: redemptionCodeList,
          meta: {
            title: "兑换码列表"
          }
        },
        {
          path: '/5-7',
          redirect: '/redemptionRecord',
          meta: {
            title: "兑换记录"
          }
        },
        {
          path: '/redemptionRecord',
          name: 'redemptionRecord',
          component: redemptionRecord,
          meta: {
            title: "兑换记录"
          }
        },
        {
          path: '/5-8',
          redirect: '/channelsManagement',
          meta: {
            title: "渠道管理"
          }
        },
        {
          path: '/channelsManagement',
          name: 'channelsManagement',
          component: channelsManagement,
          meta: {
            title: "渠道管理"
          }
        },
        {
          path: '/5-9',
          redirect: '/invitationRulesManagement',
          meta: {
            title: "邀请规则管理"
          }
        },
        {
          path: '/invitationRulesManagement',
          name: 'invitationRulesManagement',
          component: invitationRulesManagement,
          meta: {
            title: "邀请规则管理"
          }
        },
        {
          path: '/5-10',
          redirect: '/invitationGroupManagement',
          meta: {
            title: "邀请群管理"
          }
        },
        {
          path: '/invitationGroupManagement',
          name: 'invitationGroupManagement',
          component: invitationGroupManagement,
          meta: {
            title: "邀请群管理"
          }
        },
        {
          path: '/5-11',
          redirect: '/systemNoticeManagement',
          meta: {
            title: "系统公告管理"
          }
        },
        {
          path: '/systemNoticeManagement',
          name: 'systemNoticeManagement',
          component: systemNoticeManagement,
          meta: {
            title: "系统公告管理"
          }
        },
        {
          path: '/5-12',
          redirect: '/dailyCheckInManagement',
          meta: {
            title: "每日签到管理"
          }
        },
        {
          path: '/dailyCheckInManagement',
          name: 'dailyCheckInManagement',
          component: dailyCheckInManagement,
          meta: {
            title: "每日签到管理"
          }
        },
        {
          path: '/5-13',
          redirect: '/diamondPackageManagement',
          meta: {
            title: "钻石套餐管理"
          }
        },
        {
          path: '/diamondPackageManagement',
          name: 'diamondPackageManagement',
          component: diamondPackageManagement,
          meta: {
            title: "钻石套餐管理"
          }
        },
        {
          path: '/5-14',
          redirect: '/communicateCenterManagement',
          meta: {
            title: "交流中心管理"
          }
        },
        {
          path: '/communicateCenterManagement',
          name: 'communicateCenterManagement',
          component: communicateCenterManagement,
          meta: {
            title: "交流中心管理"
          }
        },
        {
          path: '/6-1',
          redirect: '/systemConfig',
          meta: {
            title: "系统配置"
          }
        },
        {
          path: '/systemConfig',
          name: 'systemConfig',
          component: systemConfig,
          meta: {
            title: "系统配置"
          }
        },
        {
          path: '/6-2',
          redirect: '/versionUpgradManagement',
          meta: {
            title: "版本升级管理"
          }
        },
        {
          path: '/versionUpgradManagement',
          name: 'versionUpgradManagement',
          component: versionUpgradManagement,
          meta: {
            title: "版本升级管理"
          }
        },
        {
          path: '/6-3',
          redirect: '/permissionResourceManagement',
          meta: {
            title: "权限资源管理"
          }
        },
        {
          path: '/permissionResourceManagement',
          name: 'permissionResourceManagement',
          component: permissionResourceManagement,
          meta: {
            title: "权限资源管理"
          }
        },
        {
          path: '/6-4',
          redirect: '/rolesManagement',
          meta: {
            title: "角色管理"
          }
        },
        {
          path: '/rolesManagement',
          name: 'rolesManagement',
          component: rolesManagement,
          meta: {
            title: "角色管理"
          }
        },
        {
          path: '/6-5',
          redirect: '/administratorManagement',
          meta: {
            title: "管理员管理"
          }
        },
        {
          path: '/administratorManagement',
          name: 'administratorManagement',
          component: administratorManagement,
          meta: {
            title: "管理员管理"
          }
        },
        {
          path: '/6-6',
          redirect: '/domainNameManagement',
          meta: {
            title: "域名管理"
          }
        },
        {
          path: '/domainNameManagement',
          name: 'domainNameManagement',
          component: domainNameManagement,
          meta: {
            title: "域名管理"
          }
        },
        {
          path: '/7-1',
          redirect: '/errorLog',
          meta: {
            title: "错误日志"
          }
        },
        {
          path: '/errorLog',
          name: 'errorLog',
          component: errorLog,
          meta: {
            title: "错误日志"
          }
        },
        {
          path: '/7-2',
          redirect: '/userBehaviorAnalysis',
          meta: {
            title: "用户行为分析"
          }
        },
        {
          path: '/userBehaviorAnalysis',
          name: 'userBehaviorAnalysis',
          component: userBehaviorAnalysis,
          meta: {
            title: "用户行为分析"
          }
        },
        {
          path: '/7-3',
          redirect: '/operationLog',
          meta: {
            title: "用户行为分析"
          }
        },
        {
          path: '/operationLog',
          name: 'operationLog',
          component: operationLog,
          meta: {
            title: "用户行为分析"
          }
        },
      ],
    },

  ],
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    } else {
      return {
        x: 0,
        y: 0
      }
    }
    if (to.hash) {
      return {
        selector: to.hash
      }
    }
  },

  beforeRouteEnter(to, from, next) {
    // 这个地方的代码是在create之前调用
    next(vm => {
      if (to.meta.isShow > from.meta.index) {} else if (to.meta.index < from.meta.index) {} else {}
    })

  },
})
